
import { Component, OnInit } from 'angular2/core';

@Component({
    selector: 'weui-dialog',
    templateUrl: './app/component/dialog/dialog.html'
})

export class DialogComponent implements OnInit {

    private _showDialog1 = false;
    private _showDialog2 = false;

    constructor() { }

    ngOnInit() { }

    showDialog1() {
        this._showDialog1 = true;
    }

    hiddenDialog1() {
        this._showDialog1 = false;
    }

    showDialog2(visible) {
        this._showDialog2 = visible;
    }

}